package com.cjl.dental_clinic.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cjl.dental_clinic.Req.MedicineReq;
import com.cjl.dental_clinic.entity.Medicine;
import com.cjl.dental_clinic.mapper.MedicineMapper;
import com.cjl.dental_clinic.service.MedicineService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @description:
 * @author: cjl
 * @time: 2024/04/03 18:23
 */
@Transactional(rollbackFor = Exception.class)
@Service
public class MedicineServiceImpl extends ServiceImpl<MedicineMapper, Medicine> implements MedicineService {
    @Override
    public List<MedicineReq> listMedicine(Integer id) {
        return baseMapper.listMedicine(id);
    }
}
